﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace RM.BLL
{
    public partial class RMRoleUser
    {
        private readonly DAL.RMRoleUser dal;
        public RMRoleUser()
        {
            dal = new DAL.RMRoleUser();
        }
        /// <summary>
        /// 判断数据是否存在。
        /// </summary>
        public bool Exists(int id)
        {
            return dal.Exists(id);
        }
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(Model.RMRoleUser model)
        {
            return dal.Add(model);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(Model.RMRoleUser model)
        {
            return dal.Update(model);
        }
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public bool Delete(int id)
        {
            return dal.Delete(id);
        }
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        public Model.RMRoleUser GetModel(int id)
        {
            return dal.GetModel(id);
        }
        /// <summary>
        /// 获得查询数据分页
        /// </summary>
        public DataSet GetList(int pageSize, int pageIndex, string strWhere, string fieldOrder, out int recordCount)
        {
            return dal.GetList(pageSize, pageIndex, strWhere, fieldOrder, out recordCount);
        }

    }
}
